/*
 *
 * Copyright (c) 2021
 * User:Dybala
 * File:UserLoginToken.java
 * Date:2021/11/08 10:46:08
 */
package com.config.myAnnotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
 * 加上这个注解，代表需要校验token，判断是否登录
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface UserLoginToken {
    boolean required() default true;
}